//
//  TZComposeView.m
//  X-Tribe
//
//  Created by my-pc on 16/4/3.
//  Copyright © 2016年 Miss.Ou. All rights reserved.
//

#import "TZComposeView.h"

@implementation TZComposeView
-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        
        
//        [self creatSubView];
        
        
        
    }
    
    return  [[[NSBundle mainBundle]loadNibNamed:@"TZComposeView" owner:nil options:nil]lastObject];
    
}
-(void)creatSubView
{
    UILabel *label = [[UILabel alloc]init];
    [self addSubview:label];
    label.backgroundColor = [UIColor purpleColor];
    label.text = @"标题";
    label.frame = (CGRect){{20,20},CGSizeMake(100, 20)};
    
    UILabel *label1 = [[UILabel alloc]init];
    [self addSubview:label1];
    label1.backgroundColor = [UIColor purpleColor];
    label1.text = @"上传证书";
    label1.frame = (CGRect){{160,20},CGSizeMake(100, 20)};
    
    
    UITextField *text = [[UITextField alloc]init];
    [self addSubview:text];
    text.backgroundColor = [UIColor grayColor];
    text.placeholder = @"招募时间";
    text.frame = (CGRect){{20,70},CGSizeMake(80, 20)};
    
    UITextField *text2 = [[UITextField alloc]init];
    [self addSubview:text2];
    text2.backgroundColor = [UIColor grayColor];
    text2.placeholder = @"活动时间";
    text2.frame = (CGRect){{140,70},CGSizeMake(80, 20)};
    
}



- (IBAction)backBtn:(UIButton *)sender {
    
    [self.composeDelegete backTo];
}
@end
